(function(clazz){
	
	var classdat = Get("/clazz/name/"+clazz).obj;
	
	var db   = Get("/"+classdat.sever+"/"+clazz).obj;
	var data  = [];
	
	for(d in db){
		if(classdat.sever=="entity"){
			var info = db[d].info;
			var obj  = {};
			obj.id = db[d].id;
			for(i in info){
				obj[info[i].key] = info[i].value;
			}
			data.push(obj);
		}else{
			data.push(db[d]);
		}
	}
	log(data);
	return data;
})